<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
</head>

<body>
<ul>
	<li>1</li>
	<li>2</li>
	<li>3</li>
</ul>
<!--行内式-->
<input type="button" value="惦记我" onClick="javascript:alert('按钮被点击')">
<input type="button" id="btn" value="点击我">
</body>
</html>
<script>
var ull =document.getElementsByTagName('ul')[0];
	console.log(ull.childNodes);
	ull.removeChild(ull.childNodes[3]);
//	ull.removeAttribute('type');
//动态半丁
var btn=document.getElementById('btn');
	btn.onclick=function(){
		alert("按钮被点击");
	};



</script>
